package com.dc.ai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dc.ai.entity.po.Product;
import com.dc.ai.mapper.ProductMapper;
import com.dc.ai.service.ProductService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Override
    public List<Product> productListbyUserId(String userId) {
        return this.baseMapper.productListbyUserId(userId);
    }

    @Override
    public Product getProductById(Long productId) {
        return this.baseMapper.getProductById(productId);
    }
}
